package com.liao.r2dbc.dao;

import com.liao.r2dbc.pojo.TbUser;
import org.springframework.data.r2dbc.repository.Query;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import reactor.core.publisher.Flux;


public interface UserDao extends ReactiveCrudRepository<TbUser,Integer>,CustomUserDao {

     Flux<TbUser> findByIdBetween(Integer start, Integer end);

     @Query("select * from user where id = :id")
     Flux<TbUser> myFindAllById(Integer id);
}
